<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        input[type="checkbox"] {
           visibility: hidden;
       }
        .xxx {
            position: relative;
            border:1px solid red;
        }
        .xxx::after {
            content:'✔';
            position: absolute;
            right:0;
            bottom:0;
            color:white;
            background-color: red;
        }
   
    </style>
</head>
<body>
    <label style="display:inline-block;width: 100px;height: 100px;">
        武汉市<input type="checkbox" name="" >
    </label>
    
    <input type="file" style="visibility: hidden;" id="f">
    <button>111</button>


    <script src="./js/lib/jquery.js"></script>
    <script>
        
        $('input').click(function(e) {
            console.log(e.target.checked,$(this).prop('checked'))
           $(this).parent().toggleClass('xxx');
        })
    </script>
</body>
</html>